package concept.misc;

public class ProfitCalculator
{
	public double getPorfits(int breakClause, double rent, double chargeRate)
	{
		double cost = rent*chargeRate
		//+ (12-breakClause) * rent
		;
		double gross = rent * breakClause;
		
		return gross - cost;
	}
	
	public static void main(String[] args)
	{
		ProfitCalculator calculator = new ProfitCalculator();
		
		int breakClause = 6;
		double rent = 1100;
		double chargeRate = 0.15;
		
		System.out.println(calculator.getPorfits(breakClause, rent, chargeRate));
	}
}
